<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/jsps/common/taglibs.jsp"%>

<!DOCTYPE html>
<html lang="en" class="body-full-height">
    <head>        
        <!-- META SECTION -->
        <title>注册</title>            
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        
        <link rel="icon" href=${pageContext.request.contextPath}/"pics/favicon.ico" type="image/x-icon" />
        <!-- END META SECTION -->
        
        <!-- CSS INCLUDE -->        
        <link rel="stylesheet" type="text/css" id="theme" href="${pageContext.request.contextPath}/css/theme-default.css"/>
        <!-- EOF CSS INCLUDE -->                                    
    </head>
    <body>
        
        <div class="login-container">
        
            <div class="login-box animated fadeInDown">
                <div class="login-logo"></div>
                <div class="login-body">
                    <div class="login-title"><fmt:message key="user.welcome"/>,请输入注册信息</div>
                    <form:form action="${pageContext.request.contextPath}/security/register" class="form-horizontal" method="post" modelAttribute="user">
	                    <div class="form-group">
	                        <div class="col-md-12">
	                            <form:input path="userNo" class="form-control" placeholder="账号"/>
	                        </div>
	                    </div>
	                    <div class="form-group">
	                        <div class="col-md-12">
	                            <form:input path="userName" class="form-control" placeholder="姓名"/>
	                        </div>
	                    </div>
	                    <div class="form-group">
	                        <div class="col-md-12">
	                            <form:input path="userPwd" class="form-control" placeholder="密码"/>
	                        </div>
	                    </div>
	                    <div class="form-group">
	                        <div class="col-md-12">
                                <button id="submit" class="btn btn-info btn-lg center-block">注册</button>
	                        </div>
	                    </div>
                    </form:form>
                </div>
                <div class="login-footer">
                    <div class="pull-left">
                        &copy; 2017 smirk - xiaoze
                    </div>
                </div>
            </div>
            
        </div>

        <script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-3.1.1.min.js"></script>
        <script type="text/javascript">

            $(function(){

                $("#submit").click(function () {
                    $("form:eq(0)").submit();
                });

            });

        </script>

    </body>
</html>






